<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/6/28
  Time: 9:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    hello ${user.uname}
    <br>
    <table border="1" style="border-collapse: collapse;width: 60%;margin: 0 auto;">
        <thead>
            <th>序号</th>
            <th>部门编号</th>
            <th>部门名</th>
            <th>所在地</th>
        </thead>
        <tbody>
            <c:forEach items="${deptList}" var="dept" varStatus="status">
                <tr>
                    <td>${status.count}</td>
                    <td>${dept.deptno}</td>
                    <td>${dept.dname}</td>
                    <td>${dept.loc}</td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</body>
</html>
